\hypertarget{class_network_handler}{
\section{Network\-Handler Class Reference}
\label{class_network_handler}\index{NetworkHandler@{NetworkHandler}}
}
{\tt \#include $<$Network\-Handler.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{class_network_handler_22605e83fa247d9b772d0c5488c71943}{Network\-Handler} ()
\item 
\hyperlink{class_network_handler_fd2794c885d5c9ed46d9ec8ed2140eba}{$\sim$Network\-Handler} ()
\item 
unsigned int \hyperlink{class_network_handler_f7f90139f559efcdc6ed6d7be25a982f}{Connect} (const std::string \&s\-Host, u\_\-short n\-Port)
\item 
void \hyperlink{class_network_handler_207e088e3dae8388499cedc25b91e601}{Send} (const std::string \&s\-Data)
\item 
void \hyperlink{class_network_handler_8663eeaa82e15ad9beeb6a4f0408dc72}{Receive} (std::string \&s\-Data)
\item 
void \hyperlink{class_network_handler_e0b7a0b5c339af5d7f747529febffc57}{Disconnect} ()
\end{CompactItemize}
\subsection*{Classes}
\begin{CompactItemize}
\item 
class \hyperlink{class_network_handler_1_1_network_exception}{Network\-Exception}
\end{CompactItemize}


\subsection{Detailed Description}
Client for sending and receiving commands down a Win\-Sock2 Socket 



\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_network_handler_22605e83fa247d9b772d0c5488c71943}{
\index{NetworkHandler@{Network\-Handler}!NetworkHandler@{NetworkHandler}}
\index{NetworkHandler@{NetworkHandler}!NetworkHandler@{Network\-Handler}}
\subsubsection[NetworkHandler]{\setlength{\rightskip}{0pt plus 5cm}Network\-Handler::Network\-Handler ()}}
\label{class_network_handler_22605e83fa247d9b772d0c5488c71943}


Constructor \hypertarget{class_network_handler_fd2794c885d5c9ed46d9ec8ed2140eba}{
\index{NetworkHandler@{Network\-Handler}!~NetworkHandler@{$\sim$NetworkHandler}}
\index{~NetworkHandler@{$\sim$NetworkHandler}!NetworkHandler@{Network\-Handler}}
\subsubsection[$\sim$NetworkHandler]{\setlength{\rightskip}{0pt plus 5cm}Network\-Handler::$\sim$Network\-Handler ()}}
\label{class_network_handler_fd2794c885d5c9ed46d9ec8ed2140eba}


Destructor 

\subsection{Member Function Documentation}
\hypertarget{class_network_handler_f7f90139f559efcdc6ed6d7be25a982f}{
\index{NetworkHandler@{Network\-Handler}!Connect@{Connect}}
\index{Connect@{Connect}!NetworkHandler@{Network\-Handler}}
\subsubsection[Connect]{\setlength{\rightskip}{0pt plus 5cm}unsigned int Network\-Handler::Connect (const std::string \& {\em s\-Host}, u\_\-short {\em n\-Port})}}
\label{class_network_handler_f7f90139f559efcdc6ed6d7be25a982f}


Connect to server \begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftarrow$} {\em s\-Host}]The host to connnect to. \item[\mbox{$\leftarrow$} {\em n\-Port}]The port on the host to connect to.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The port number connected to. Port stepping will be used until the correct port is located \end{Desc}
\hypertarget{class_network_handler_207e088e3dae8388499cedc25b91e601}{
\index{NetworkHandler@{Network\-Handler}!Send@{Send}}
\index{Send@{Send}!NetworkHandler@{Network\-Handler}}
\subsubsection[Send]{\setlength{\rightskip}{0pt plus 5cm}void Network\-Handler::Send (const std::string \& {\em s\-Data})}}
\label{class_network_handler_207e088e3dae8388499cedc25b91e601}


Send a string down the socket

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftarrow$} {\em s\-Data}]The data to be sent. \end{description}
\end{Desc}
\hypertarget{class_network_handler_8663eeaa82e15ad9beeb6a4f0408dc72}{
\index{NetworkHandler@{Network\-Handler}!Receive@{Receive}}
\index{Receive@{Receive}!NetworkHandler@{Network\-Handler}}
\subsubsection[Receive]{\setlength{\rightskip}{0pt plus 5cm}void Network\-Handler::Receive (std::string \& {\em s\-Data})}}
\label{class_network_handler_8663eeaa82e15ad9beeb6a4f0408dc72}


Recieve a line from the socket

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\rightarrow$} {\em s\-Data}]The data received from the connection. \end{description}
\end{Desc}
\hypertarget{class_network_handler_e0b7a0b5c339af5d7f747529febffc57}{
\index{NetworkHandler@{Network\-Handler}!Disconnect@{Disconnect}}
\index{Disconnect@{Disconnect}!NetworkHandler@{Network\-Handler}}
\subsubsection[Disconnect]{\setlength{\rightskip}{0pt plus 5cm}void Network\-Handler::Disconnect ()}}
\label{class_network_handler_e0b7a0b5c339af5d7f747529febffc57}


Disconnect gracefully. 

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
C:/dev/musink/Musink\-Submitter/Network\-Handler.h\item 
C:/dev/musink/Musink\-Submitter/Network\-Handler.cpp\end{CompactItemize}
